<?php
	get_header();
	if(have_posts()){
		if(is_page()){
			the_post();
			if(is_front_page()){
				get_template_part("content", "front-page");
			}
			else{
				get_template_part("content", "page");
			}
		}
		else{
			if(is_single() || is_attachment()){
				the_post();
				get_template_part("content", "single");
			}
			else{
				echo awisp_posts_nav_links(get_next_posts_link(__('&larr; Older posts', "awisp.theme")), get_previous_posts_link(__('Newer posts &rarr;', "awisp.theme")));
				while(have_posts()){
					the_post();
					get_template_part("content", "post");
				}
				echo awisp_posts_nav_links(get_next_posts_link(__('&larr; Older posts', "awisp.theme")), get_previous_posts_link(__('Newer posts &rarr;', "awisp.theme")));
			}
		}
	}
	else{
		get_template_part("content", "none");
	}
	get_footer();
?>